import java.io.File;

import com.adc.quicktools.file.WildcardsFilter;

/**********************************************************************************
 * Copyright (c) 2012 - 2012,  quick_tools, All right reserved
 * Title:   TestFilenameFilter.java 
 * @author shen  shenqiao2012@163.com 
 *  2012-7-20 下午3:24:34 
 *********************************************************************************/

public class TestFilenameFilter {

	/**
	 * Description: 这里用一句话描述这个方法的作用 
	 * author:  shen
	 * @param args 
	 * @return void
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		testWildcardFilter();
	}

	public static void testWildcardFilter() {
		String dirString="E:\\TempTest\\temp";
		String matchString="CMDP_CMD_DSTR_????PRE_ACHN_L88_??_*.PNG";
		WildcardsFilter wfFilter=new WildcardsFilter(matchString);
		String[] files=new File(dirString).list(wfFilter);
		for (int i = 0; i < files.length; i++) {
			System.out.println(files[i]);
		}
	}
}
